@layout("/common/_container.html",{js:["/assets/storage/storageStock/stockListPositionNumber.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">Inventory Monitoring</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
		                    <div class="layui-inline">
		                        <select id="operateId">
		                            <option value="">Select Project Department</option>
						            @for(item in basicOperatelist!){
						            <option value="${item.id}">${item.operateName}</option>
						            @}
		                        </select>
		                    </div>
		                    <div class="layui-inline">
		                        <select id="customerId">
		                            <option value="">Select Customer</option>
						            @for(item in basicCustomerList!){
						            <option value="${item.id}">${item.customerName}</option>
						            @}
		                        </select>
		                    </div>
		                    <div class="layui-inline">
		                        <select id="warehouseId" lay-filter="warehouseId">
		                            <option value="">Select Warehouse</option>
						            @for(item in basicWarehouseList!){
						            <option value="${item.id}">${item.warehouseName}</option>
						            @}
		                        </select>
		                    </div>
		                    <div class="layui-inline">
		                        <select id="areaId" lay-filter="areaId">
		                            <option value="">Select Area</option>
		                        </select>
		                    </div>
		                    <div class="layui-inline" style="width: 180px;">
		                        <input id="positionNumber" class="layui-input" type="text" placeholder="Location Number" autocomplete="off" style="padding-right: 40px;"/>
		                        <button type="button" class="layui-btn layui-btn-primary" id="choicep" style="position: absolute;right: 1px;cursor: pointer;top: 2px"><i class="layui-icon">&#xe615;</i></button>
		                    </div>

		                    <div class="layui-inline" style="width: 180px;">
		                        <input id="goodsNumber" class="layui-input" type="text" placeholder="Product Code"/>
		                    </div>
		                    <div class="layui-inline" style="width: 180px;">
		                        <input id="goodsName" class="layui-input" type="text" placeholder="Product Name" autocomplete="off" style="padding-right: 40px;"/>
		                        <button type="button" class="layui-btn layui-btn-primary" id="choiceg" style="position: absolute;right: 1px;cursor: pointer;top: 2px"><i class="layui-icon">&#xe615;</i></button>
		                    </div>
		                    <div class="layui-inline">
		                        <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>Search</button>
		                    </div>
		                    <div class="layui-inline">
		                    	<button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>Export</button>
		                    </div>
	                    </div>
	                </div>
               		<table class="layui-table" id="storageStockTable" lay-filter="storageStockTable"></table>
               		<div class="layui-tab layui-tab-brief" lay-filter="doTabBrief" id="tabmsg" style="display: none;">
               			<ul class="layui-tab-title">
               				<li class="layui-this">Inventory Info</li>
               				<li>Transaction Info</li>
               			</ul>
               			<div class="layui-tab-content">
               				<div class="layui-tab-item layui-show">
			                    <div class="layui-form toolbar">
			                        <div class="layui-form-item">
										<div class="layui-inline" style="width: 170px;">
											<input id="trayNumber" class="layui-input" type="text" placeholder="Tray Number"/>
										</div>
										<div class="layui-inline" style="width: 160px;">
											<input id="goodsbatchs" class="layui-input" type="text" placeholder="Batch"/>
										</div>
					                    <div class="layui-inline">
					                        <button id="btnSearch2" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>Search</button>
					                    </div>
					                    <div class="layui-inline">
					                    	<button id="btnExp2" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>Export</button>
					                    </div>
				                    </div>
				                </div>
			               		<table class="layui-table" id="storageStockTable2" lay-filter="storageStockTable2"></table>
							</div>
               				<div class="layui-tab-item">
			                    <div class="layui-form toolbar">
			                        <div class="layui-form-item">
							            <div class="layui-inline">
							                <input id="condition3" class="layui-input" type="text" placeholder="Order No"/>
							            </div>
					                    <div class="layui-inline" style="width: 150px;">
					                        <input id="startTime3" class="layui-input" type="text" placeholder="Date From"/>
					                    </div>
			                            <div class="layui-inline">
			                            	to
			                            </div>
					                    <div class="layui-inline" style="width: 150px;">
					                        <input id="endTime3" class="layui-input" type="text" placeholder="Date To"/>
					                    </div>
					                    <div class="layui-inline">
					                        <button id="btnSearch3" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>Search</button>
					                    	<button id="btnExp3" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>Export</button>
					                    </div>
				                    </div>
				                </div>
			                    <table class="layui-table" id="storageStockDetailedTable" lay-filter="storageStockDetailedTable"></table>
							</div>
               			</div>
               		</div>
                </div>
            </div>
        </div>
    </div>
</div>
<input id="warehouseId" type="hidden"/>
<input id="goodsId" type="hidden"/>
<script type="text/html" id="stockstateTpl">
  {{#  if(d.stockstate === 'In Stock'){ }}
    <span style="color: #43CF7C;font-weight: 600;">{{ d.stockstate }}</span>
  {{#  } else { }}
    {{ d.stockstate }}
  {{#  } }}
</script>
@}